
import omni.client
import pxr.Usd  # 验证USD依赖库
print("成功导入 omni.client 和 pxr.Usd，配置正确！")

# # 测试 ROS2 基础功能
import rclpy
print(rclpy.__file__)
from rclpy.node import Node
from std_msgs.msg import String

# 初始化 ROS2
rclpy.init()

# 创建节点和发布者
node = Node("test_node")
publisher = node.create_publisher(String, "/test_topic", 10)

# 发布测试消息
msg = String()
msg.data = "Hello from Isaac Sim Script Editor!"
publisher.publish(msg)
print("Message published!")

# 清理（可选）
rclpy.shutdown()